﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Sharp.Portal.Configuration;

namespace Sharp.WebBooter.Areas.Platform
{
    /// <summary>
    /// 用户配置的实体类
    /// </summary>
    public class UserConfigInfo : IPreferenceConfig, IUserConfig
    {
        public UserConfigInfo()
        {
            Subscribers = new List<SubscriberItem>();
            PageSize = 15;
        }
        public int PageSize { get; set; }
        /// <summary>
        /// 订阅项
        /// </summary>
        public List<SubscriberItem> Subscribers { get; set; }

        /// <summary>
        /// 订阅项
        /// </summary>
        public class SubscriberItem
        {
            public Guid Id { get; set; }
            public int Order { get; set; }
        }
        public string ConfigFileName => "平台用户自定义配置.cfg";
    }
}